<?php
class PhormHtmlElements
{
	/**
	 * @return PhormHtmlAttributes
	 */
	public function tr( $content ){
		$attr = new PhormHtmlAttributes('tr');
		$this->elements[] = array(
			'tag'	=> 'tr',
			'attr'	=> $attr
		);
		return $attr;
	}
}

class PhormHtmlAttributes
{
	public function labelFor( $name )
	{
		
	}
}

$form = new FormBuilder();
$el = new PhormHtmlElements();
$val = new PhormValidator(); // PhormValidatorZend, PhormValidatorSymphony, MyValidators, etc... 
$fil = new PhormFilter();
$TrAttr = new PhormHtmlAttributes();
$TrAttr->style('background: #fff;')->attr('align', 'center');
$form->add(
	$el->tr(
		 $el->td('First Name')->labelFor('first_name')
		,$el->td(
			$el->inputText('first_name')->addValidators(
				$val->lessThen(5)
			)->addFilters(
				$fil->digits(), $fil->stripTags()
			)
		)
	)->useAttr( $TrAttr )->style('border-top: 1px solid red; font-weight: bold;')->attr('colspan', 2)
	,$el->tr(
		
	)->useAttr( $TrAttr )
)